﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MailServer.Message {
    [Serializable]
    public class Content {
        private string subject;
        private string body;
        /// <summary>
        /// Almacena el asunto y el contenido del mensaje
        /// </summary>
        /// <param name="subject">Asunto</param>
        /// <param name="body">Contenido</param>

        public Content(string subject, string body) {
            this.subject = subject;
            this.body = body;
        }

        public override string ToString() {
            return "Subject: " + subject + Environment.NewLine +
                   "Body:" + body;
        }
    }
}
